M

PropertyLine.Create

Description:
Creates a new PropertyLine element from property table and adds it to the document.
Remarks:
If the input property table contains any entry that with very short distance. an InvalidOperationException will be thrown.
Overloads (2):
Create(Document,IList[PropertyTableEntry])
public static PropertyLine Create(
	Document document,
	IList<PropertyTableEntry> pt
)
Return Value PropertyLine The new PropertyLine element.
  • Property table is invalid - it refers to either property table size is too less or distance is too short. Another case is for arc type, if the radius value is smaller than half distance. It will also be considered as invalid.
  • A non-optional argument was null
  • Failed to create the new PropertyLine with input property table.
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
  • The document has no open transaction.